package com.smedi.ismedi.web.starter.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: xulinjun
 * @Date: 2021-7-7 10:09
 */
@Data
@Component
@ConfigurationProperties(prefix = "web-starter.swagger")
public class SwaggerProperty {
    @Value("${spring.application.name}")
    private String application;

    /**
     * 需要扫描的package
     */
    private String[] scanPackages;

    /**
     * 需要添加的头参数信息
     */
    private String[] headers;

    /**
     * 作者姓名
     */
    private String author = "";

    /**
     * 邮箱地址
     */
    private String email = "";

    /**
     * 联系链接
     */
    private String url = "";

    /**
     * 版本
     */
    private String version = "";

    /**
     * 标题
     */
    private String title = application;

    /**
     * 描述
     */
    private String description = "";

    /**
     * 是否开启
     */
    private boolean enabled;
}
